package com.jt.www.model.Insurancedata;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;

import java.text.SimpleDateFormat;
import java.util.Date;


public class DataApiBean {
    @JsonIgnore
    private static final SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    /**
     * 同比数据类型 1-新增注册、2-新增投保、3-新增保费、4-新增人数，5-保费
     */
    @ApiModelProperty(value = "同比数据类型 1-新增注册、2-新增投保、3-新增保费、4-新增人数，5-保费")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String queryType;
    /**
     * 省编码
     */
    @ApiModelProperty(value = "省编码")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String provinceCode;
    /**
     * 市编码
     */
    @ApiModelProperty(value = "市编码")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String cityCode;
    /**
     * 县编码
     */
    @ApiModelProperty(value = "县编码")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String countyCode;
    /**
     * 分支机构编码
     */
    @ApiModelProperty(value = "分支机构编码")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String branchCode;
    /**
     * 险种编码
     */
    @ApiModelProperty(value = "险种编码")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String riskCode;
    /**
     * 机构类型 0-学校,1-企业
     */
    @ApiModelProperty(value = "机构类型 0-学校,1-企业")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String orgType;
    /**
     * 学校类型 0-幼儿园,1-小学,2-普通中学,3-中职,4-高职,5-普通高校(不含高等职业院校,6-工读学校,7-特殊学校,8-教育培训机构,9-其它
     */
    @ApiModelProperty(value = "学校类型 0-幼儿园,1-小学,2-普通中学,3-中职,4-高职,5-普通高校(不含高等职业院校,6-工读学校,7-特殊学校,8-教育培训机构,9-其它")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String schoolType;
    /**
     * 项目编码
     */
    @ApiModelProperty(value = "项目编码")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String projectCode;
    /**
     * 主险编码
     */
    @ApiModelProperty(value = "主险编码")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String mainRiskCode;
    /**
     * 附加险编码
     */
    @ApiModelProperty(value = "附加险编码")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String additionRiskCode;
    /**
     * 投保人名称
     */
    @ApiModelProperty(value = "投保人名称")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String holderName;
    /**
     * 投保日期起期
     */
    @ApiModelProperty(value = "投保日期起期")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String applicationStartDate;
    /**
     * 投保日期止期
     */
    @ApiModelProperty(value = "投保日期止期")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String applicationEndDate;
    /**
     * 出单日期起期
     */
    @ApiModelProperty(value = "出单日期起期")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String issueStartDate;
    /**
     * 出单日期止期
     */
    @ApiModelProperty(value = "出单日期止期")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String issueEndDate;
    /**
     * 注册时间起期
     */
    @ApiModelProperty(value = "注册时间起期")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String registeredStartDate;
    /**
     * 注册时间止期
     */
    @ApiModelProperty(value = "注册时间止期")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String registeredEndDate;
    /**
     * 查询时间
     */
    @ApiModelProperty(value = "查询时间")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String selectDate;
    /**
     * 每页条数
     */
    @ApiModelProperty(value = "每页条数")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String ps = "200";
    /**
     * 页码
     */
    @ApiModelProperty(value = "页码")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String pn = "1";
    /**
     * 统计类型 type 0-投保日期,1-出单日期  起期
     */
    @ApiModelProperty(value = "统计类型 type 0-投保日期,1-出单日期")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String type;
    /**
     * type 0-投保日期,1-出单日期  止期
     */
    @ApiModelProperty(value = "查询时间")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String startDate;
    /**
     * type 0-投保日期,1-出单日期
     */
    @ApiModelProperty(value = "查询时间")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String endDate;

    public static SimpleDateFormat getSdf() {
        return sdf;
    }

    public String getApplicationStartDate() {
        return applicationStartDate;
    }

    public void setApplicationStartDate(Date applicationStartDate) {
        if (applicationStartDate != null) {
            this.applicationStartDate = sdf.format(applicationStartDate);
        }
    }

    public void setApplicationStartDate(String applicationStartDate) {
        this.applicationStartDate = applicationStartDate;
    }

    public String getApplicationEndDate() {
        return applicationEndDate;
    }

    public void setApplicationEndDate(Date applicationEndDate) {
        if (applicationEndDate != null) {
            this.applicationEndDate = sdf.format(applicationEndDate);
        }
    }

    public void setApplicationEndDate(String applicationEndDate) {
        this.applicationEndDate = applicationEndDate;
    }

    public String getIssueStartDate() {
        return issueStartDate;
    }

    public void setIssueStartDate(Date issueStartDate) {
        if (issueStartDate != null) {
            this.issueStartDate = sdf.format(issueStartDate);
        }
    }

    public void setIssueStartDate(String issueStartDate) {
        this.issueStartDate = issueStartDate;
    }

    public String getIssueEndDate() {
        return issueEndDate;
    }

    public void setIssueEndDate(Date issueEndDate) {
        if (issueEndDate != null) {
            this.issueEndDate = sdf.format(issueEndDate);
        }
    }

    public void setIssueEndDate(String issueEndDate) {
        this.issueEndDate = issueEndDate;
    }

    public String getRegisteredStartDate() {
        return registeredStartDate;
    }

    public void setRegisteredStartDate(Date registeredStartDate) {
        if (registeredStartDate != null) {
            this.registeredStartDate = sdf.format(registeredStartDate);
        }
    }

    public void setRegisteredStartDate(String registeredStartDate) {
        this.registeredStartDate = registeredStartDate;
    }

    public String getRegisteredEndDate() {
        return registeredEndDate;
    }

    public void setRegisteredEndDate(Date registeredEndDate) {
        if (registeredStartDate != null) {
            this.registeredEndDate = sdf.format(registeredEndDate);
        }
    }

    public void setRegisteredEndDate(String registeredEndDate) {
        this.registeredEndDate = registeredEndDate;
    }

    public String getSelectDate() {
        return selectDate;
    }

    public void setSelectDate(Date selectDate) {
        if (selectDate != null) {
            this.selectDate = sdf.format(selectDate);
        }
    }

    public void setSelectDate(String selectDate) {
        this.selectDate = selectDate;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        if (startDate != null) {
            this.startDate = sdf.format(startDate);
        }
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        if (endDate != null) {
            this.endDate = sdf.format(endDate);
        }
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public String getQueryType() {
        return queryType;
    }

    public void setQueryType(String queryType) {
        this.queryType = queryType;
    }

    public String getProvinceCode() {
        return provinceCode;
    }

    public void setProvinceCode(String provinceCode) {
        this.provinceCode = provinceCode;
    }

    public String getCityCode() {
        return cityCode;
    }

    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }

    public String getCountyCode() {
        return countyCode;
    }

    public void setCountyCode(String countyCode) {
        this.countyCode = countyCode;
    }

    public String getBranchCode() {
        return branchCode;
    }

    public void setBranchCode(String branchCode) {
        this.branchCode = branchCode;
    }

    public String getRiskCode() {
        return riskCode;
    }

    public void setRiskCode(String riskCode) {
        this.riskCode = riskCode;
    }

    public String getOrgType() {
        return orgType;
    }

    public void setOrgType(String orgType) {
        this.orgType = orgType;
    }

    public String getSchoolType() {
        return schoolType;
    }

    public void setSchoolType(String schoolType) {
        this.schoolType = schoolType;
    }

    public String getProjectCode() {
        return projectCode;
    }

    public void setProjectCode(String projectCode) {
        this.projectCode = projectCode;
    }

    public String getMainRiskCode() {
        return mainRiskCode;
    }

    public void setMainRiskCode(String mainRiskCode) {
        this.mainRiskCode = mainRiskCode;
    }

    public String getAdditionRiskCode() {
        return additionRiskCode;
    }

    public void setAdditionRiskCode(String additionRiskCode) {
        this.additionRiskCode = additionRiskCode;
    }

    public String getHolderName() {
        return holderName;
    }

    public void setHolderName(String holderName) {
        this.holderName = holderName;
    }

    public String getPs() {
        return ps;
    }

    public void setPs(String ps) {
        this.ps = ps;
    }

    public String getPn() {
        return pn;
    }

    public void setPn(String pn) {
        this.pn = pn;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
